﻿@typeparam TEntity
@typeparam TResourceType
@using Abp.Localization
@using Blazorise.Components
@inherits ExtensionPropertyComponentBase<TEntity, TResourceType>

<Field>
    <FieldLabel>@PropertyInfo.GetLocalizedDisplayName(StringLocalizerFactory)</FieldLabel>
    <Autocomplete Data="@lookupItems"
                  TItem="SelectItem<object>"
                  TValue="object"
                  TextField="item => item?.Text!"
                  ValueField="item => item?.Value!"
                  SelectedValue="@SelectedValue"
                  SelectedValueChanged="@SelectedValueChanged"
                  SearchChanged="@SearchFilterChangedAsync"
                  Validator="@Validate"
                  MinLength="0"
                  Disabled="IsReadonlyField">
    </Autocomplete>
</Field>
